vpnCreate
Description
Vpn creation.
Request Method
POST
Request Path
/customer/vpn/create
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| period | BODY | integer | No | No sample value for this parameter. | period |
| cost | BODY | number | No | No sample value for this parameter. | cost |
| bandwidth | BODY | integer | Yes | No sample value for this parameter. | bandwidth |
| gatewayName | BODY | string | Yes | No sample value for this parameter. | gateway name |
| billingMethod | BODY | string | Yes | No sample value for this parameter. | billing method |
| voucherInstanceId | BODY | string | No | No sample value for this parameter. | voucher of the order |
| couponInstanceId | BODY | string | No | No sample value for this parameter. | coupon of the order |
| sslVpn | BODY | boolean | Yes | No sample value for this parameter. | enable ssl |
| sslConnection | BODY | integer | No | No sample value for this parameter. | ssl connections |
| regionId | BODY | string | Yes | No sample value for this parameter. | region id |
| vSwitchId | BODY | string | No | No sample value for this parameter. | vSwitchId |
| vpcId | BODY | string | Yes | No sample value for this parameter. | vpcId |
| pricingCycle | BODY | string | No | No sample value for this parameter. | pricingCycle ,eg Month、Year |
| ipSecVpn | BODY | boolean | Yes | No sample value for this parameter. | enable IPsec |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| result | object | `{"instanceId":"vpn-2022072618493400001","orderId":2.02207261849340006E+18}` | No description for this parameter. |
| resultCode | string | 0 | No description for this parameter. |
| resultMsg | string | success | No description for this parameter. |
Example
Successful Response example
{
"result":
{
"instanceId":"vpn-2022072618493400001",
"orderId":2.02207261849340006E+18
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}